home *** CD-ROM | disk | FTP | other *** search
- // Scene File: 3CYLINDR.PI
- // Author: Rob McGregor
-
- // Three identical cylinders at different scale
-
- include "..\..\..\colors.inc"
- include "..\..\..\texture.inc"
-
- // SET UP THE CAMERA
- viewpoint {
- from <0, 0, -4>
- at <0, 0, 0>
- up <0, 1, 0>
- angle 45
- resolution 320, 200
- aspect 1.6
- }
-
- background white
-
- // Lights
- light <-5, 0, -10>
- light <5, 0, -10>
-
- // The cylinder at 2 units high.
- object {
- cylinder <0, -0.5, 0>, <0, 0.5, 0>, 0.25
- scale <1, 2, 1>
- translate <-1.2, 0, 0>
- shiny_red
- }
-
- // The cylinder becomes half its original height.
- object {
- cylinder <0, -0.5, 0>, <0, 0.5, 0>, 0.25
- shiny_red
- }
-
- // The cylinder becomes a hockey puck.
- object {
- cylinder <0, -0.5, 0>, <0, 0.5, 0>, 0.25
- scale <1, 0.25, 1>
- translate <1.2, 0, 0>
- shiny_red
- }
-